package com.caowang.mhtlj.enums;


public enum Mode {
    SHOU_YANG_PI(1, "收羊皮"),
    meng_huan(2, "梦幻拖拉机"),
    zha_jin_hua(3, "炸金花");
    private int code;
    private String modeName;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getModeName() {
        return modeName;
    }

    public void setModeName(String modeName) {
        this.modeName = modeName;
    }

    Mode(int code, String modeName) {
        this.code = code;
        this.modeName = modeName;
    }


    public static String getModeName(Integer code) {
        for (Mode aase : values()) {
            if (aase.getCode()==code) {
                return aase.getModeName();
            }
        }
        return null;
    }

}
